home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
CIncludes
/
HIItemStorage.xh
< prev
next >
Wrap
Text File
|
1996-05-01
|
12KB
|
448 lines
/*
* This file was generated by the SOM Compiler.
* FileName: HIItemStorage.xh.
* Generated using:
* SOM Precompiler somipc: 2.18
* SOM Emitter emitxh.dll: 2.33
*/
#ifndef SOM_HIItemStorage_xh
#define SOM_HIItemStorage_xh
class HIItemStorage;
#define HIItemStorage_MajorVersion 0
#define HIItemStorage_MinorVersion 0
/*
* Passthru lines: File: "C.xh", "before"
*/
#include <HIObjects.xh>
#include <HIImagingObjects.xh>
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_SOMObject_xh
#include <somobj.xh>
#endif
#ifndef HIItemStorage_API
#define HIItemStorage_API
/*
* -- The Class API
*/
/*
* Start of user-defined types:
*/
class SOMClass;
class SOMObject;
class HIWindow;
/*
* End of user-defined types.
*/
#ifdef OLDIBMSOMAPISUPPORT
#define HIItemStorageCClassData HIItemStorageClassData
#define HIItemStorageNewClass(major,minor) somNewVersionedClassReference(HIItemStorage,major,minor)
#endif
/* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
#define HIItemStorageMetaClass SOMClass
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=power
#endif
/* The API to the HIItemStorage class object, and the methods it introduces. */
SOMEXTERN struct HIItemStorageClassDataStructure {
#ifdef OLDIBMSOMAPISUPPORT
SOMClass *classObject; /* always zero, use somNewClassReference instead */
#else
long zero;
#endif
somStaticClassInfo *sci;
somDToken instanceDataToken;
long reserved [3];
somMToken Init;
somMToken Terminate;
somMToken AddRows;
somMToken AddColumns;
somMToken DeleteRow;
somMToken DeleteColumn;
somMToken SetItemImage;
somMToken GetItemImage;
} SOMDLINK HIItemStorageClassData;
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=reset
#endif
#if !defined(HIItemStorage_Class_Source) && !defined(SOM_Module_hiitemstorage_Source)
#if PRAGMA_IMPORT_SUPPORTED
#pragma import list HIItemStorageClassData
#endif
#endif
/*
* -- Typedefs for HIItemStorage Method Procedures
*/
SOMEXTERN {
typedef OSStatus (* SOMLINK somTD_HIItemStorage_Init)(HIItemStorage *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIItemStorage_Terminate)(HIItemStorage *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIItemStorage_AddRows)(HIItemStorage *somSelf, Environment *ev,
UInt32 rowIndex,
UInt32 rowCount);
typedef OSStatus (* SOMLINK somTD_HIItemStorage_AddColumns)(HIItemStorage *somSelf, Environment *ev,
UInt32 columnIndex,
UInt32 columnCount);
typedef OSStatus (* SOMLINK somTD_HIItemStorage_DeleteRow)(HIItemStorage *somSelf, Environment *ev,
UInt32 rowIndex);
typedef OSStatus (* SOMLINK somTD_HIItemStorage_DeleteColumn)(HIItemStorage *somSelf, Environment *ev,
UInt32 columnIndex);
typedef OSStatus (* SOMLINK somTD_HIItemStorage_SetItemImage)(HIItemStorage *somSelf, Environment *ev,
UInt32 rowIndex,
UInt32 columnIndex,
ConstHIImageRef imageRef,
HIAdoptionFlags imageAdoptionFlags);
typedef OSStatus (* SOMLINK somTD_HIItemStorage_GetItemImage)(HIItemStorage *somSelf, Environment *ev,
UInt32 rowIndex,
UInt32 columnIndex,
HIImageRef* imageRefPtr);
/*
* -- Typedefs for Inherited Methods
*/
typedef void (* SOMLINK somTD_HIItemStorage_somInit)(HIItemStorage *somSelf);
typedef void (* SOMLINK somTD_HIItemStorage_somUninit)(HIItemStorage *somSelf);
typedef SOMObject* (* SOMLINK somTD_HIItemStorage_somDuplicateReference)(HIItemStorage *somSelf);
typedef boolean (* SOMLINK somTD_HIItemStorage_somCompareReference)(HIItemStorage *somSelf,
SOMObject* anObject);
typedef SOMObject* (* SOMLINK somTD_HIItemStorage_somRelease)(HIItemStorage *somSelf);
typedef void (* SOMLINK somTD_HIItemStorage_somFree)(HIItemStorage *somSelf);
typedef boolean (* SOMLINK somTD_HIItemStorage_somCanDelete)(HIItemStorage *somSelf);
typedef SOMClass* (* SOMLINK somTD_HIItemStorage_somGetClass)(HIItemStorage *somSelf);
typedef corbastring (* SOMLINK somTD_HIItemStorage_somGetClassName)(HIItemStorage *somSelf);
typedef long (* SOMLINK somTD_HIItemStorage_somGetSize)(HIItemStorage *somSelf);
typedef boolean (* SOMLINK somTD_HIItemStorage_somIsA)(HIItemStorage *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HIItemStorage_somRespondsTo)(HIItemStorage *somSelf,
somId mId);
typedef boolean (* SOMLINK somTD_HIItemStorage_somIsInstanceOf)(HIItemStorage *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HIItemStorage_somDispatch)(HIItemStorage *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HIItemStorage_somClassDispatch)(HIItemStorage *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HIItemStorage_somCastObj)(HIItemStorage *somSelf,
SOMClass* cls);
typedef boolean (* SOMLINK somTD_HIItemStorage_somResetObj)(HIItemStorage *somSelf);
typedef SOMObject* (* SOMLINK somTD_HIItemStorage_somPrintSelf)(HIItemStorage *somSelf);
typedef void (* SOMLINK somTD_HIItemStorage_somDumpSelf)(HIItemStorage *somSelf,
long level);
typedef void (* SOMLINK somTD_HIItemStorage_somDumpSelfInt)(HIItemStorage *somSelf,
long level);
}
#endif /* HIItemStorage_API */
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* -- The C++ Wrapper Class for HIItemStorage
*/
class HIItemStorage : public SOMObject
{
public:
// HIItemStorage::new registers use of the class object, and then uses somNew
// to allocate memory and load the object method table pointer.
void *operator new(size_t size)
{
SOM_IgnoreWarning(size);
// Allocate memory using the default allocator for HIItemStorage, and
// clear mem & set method table pointer, call basic initialization
return (void*) somNewObject(HIItemStorage);
}
// HIItemStorage::delete uses the default deallocator for the object's class.
void operator delete(void * obj)
{
if (obj) {
SOM_Resolve(obj,SOMObject,somFree)
( (SOMObject*) obj );
}
}
/* method: Init */
OSStatus Init(Environment *ev)
{
return SOM_ResolveD(this,HIItemStorage,HIItemStorage,Init)
(this,ev);
}
/* method: Terminate */
void Terminate(Environment *ev)
{
SOM_ResolveD(this,HIItemStorage,HIItemStorage,Terminate)
(this,ev);
}
/* method: AddRows */
OSStatus AddRows(Environment *ev,
UInt32 rowIndex,
UInt32 rowCount)
{
return SOM_ResolveD(this,HIItemStorage,HIItemStorage,AddRows)
(this,ev,rowIndex,rowCount);
}
/* method: AddColumns */
OSStatus AddColumns(Environment *ev,
UInt32 columnIndex,
UInt32 columnCount)
{
return SOM_ResolveD(this,HIItemStorage,HIItemStorage,AddColumns)
(this,ev,columnIndex,columnCount);
}
/* method: DeleteRow */
OSStatus DeleteRow(Environment *ev,
UInt32 rowIndex)
{
return SOM_ResolveD(this,HIItemStorage,HIItemStorage,DeleteRow)
(this,ev,rowIndex);
}
/* method: DeleteColumn */
OSStatus DeleteColumn(Environment *ev,
UInt32 columnIndex)
{
return SOM_ResolveD(this,HIItemStorage,HIItemStorage,DeleteColumn)
(this,ev,columnIndex);
}
/* method: SetItemImage */
OSStatus SetItemImage(Environment *ev,
UInt32 rowIndex,
UInt32 columnIndex,
ConstHIImageRef imageRef,
HIAdoptionFlags imageAdoptionFlags)
{
return SOM_ResolveD(this,HIItemStorage,HIItemStorage,SetItemImage)
(this,ev,rowIndex,columnIndex,imageRef,imageAdoptionFlags);
}
/* method: GetItemImage */
OSStatus GetItemImage(Environment *ev,
UInt32 rowIndex,
UInt32 columnIndex,
HIImageRef* imageRefPtr)
{
return SOM_ResolveD(this,HIItemStorage,HIItemStorage,GetItemImage)
(this,ev,rowIndex,columnIndex,imageRefPtr);
}
/*
* -- Inherited methods
*/
/* method: somInit */
void somInit()
{
SOM_ResolveD(this,HIItemStorage,SOMObject,somInit)
(this);
}
/* method: somUninit */
void somUninit()
{
SOM_ResolveD(this,HIItemStorage,SOMObject,somUninit)
(this);
}
/* method: somDuplicateReference */
SOMObject* somDuplicateReference()
{
return SOM_ResolveD(this,HIItemStorage,SOMObject,somDuplicateReference)
(this);
}
/* method: somCompareReference */
boolean somCompareReference(SOMObject* anObject)
{
return SOM_ResolveD(this,HIItemStorage,SOMObject,somCompareReference)
(this,anObject);
}
/* method: somRelease */
SOMObject* somRelease()
{
return SOM_ResolveD(this,HIItemStorage,SOMObject,somRelease)
(this);
}
/* method: somFree */
void somFree()
{
SOM_ResolveD(this,HIItemStorage,SOMObject,somFree)
(this);
}
/* method: somCanDelete */
boolean somCanDelete()
{
return SOM_ResolveD(this,HIItemStorage,SOMObject,somCanDelete)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
return SOM_ResolveD(this,HIItemStorage,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
corbastring somGetClassName()
{
return SOM_ResolveD(this,HIItemStorage,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
return SOM_ResolveD(this,HIItemStorage,SOMObject,somGetSize)
(this);
}
/* method: somIsA */
boolean somIsA(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HIItemStorage,SOMObject,somIsA)
(this,aClassObj);
}
/* method: somRespondsTo */
boolean somRespondsTo(somId mId)
{
return SOM_ResolveD(this,HIItemStorage,SOMObject,somRespondsTo)
(this,mId);
}
/* method: somIsInstanceOf */
boolean somIsInstanceOf(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HIItemStorage,SOMObject,somIsInstanceOf)
(this,aClassObj);
}
/* va_list method: somDispatch */
/* the va_list invocation form */
boolean HIItemStorage_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HIItemStorage,SOMObject,somDispatch)
(this,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somDispatch(somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HIItemStorage,SOMObject,somDispatch)
(this,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean HIItemStorage_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HIItemStorage,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HIItemStorage,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* method: somCastObj */
boolean somCastObj(SOMClass* cls)
{
return SOM_ResolveD(this,HIItemStorage,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
return SOM_ResolveD(this,HIItemStorage,SOMObject,somResetObj)
(this);
}
/* method: somPrintSelf */
SOMObject* somPrintSelf()
{
return SOM_ResolveD(this,HIItemStorage,SOMObject,somPrintSelf)
(this);
}
/* method: somDumpSelf */
void somDumpSelf(long level)
{
SOM_ResolveD(this,HIItemStorage,SOMObject,somDumpSelf)
(this,level);
}
/* method: somDumpSelfInt */
void somDumpSelfInt(long level)
{
SOM_ResolveD(this,HIItemStorage,SOMObject,somDumpSelfInt)
(this,level);
}
}; /* HIItemStorage */
#endif /* SOM_HIItemStorage_xh */